package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevCamera;
import cn.sciento.fluorite.response.WebLiveAddress;

import java.io.UnsupportedEncodingException;
import java.util.List;

public interface CameraService {
    int insert(DevCamera devCamera,String validateCode) throws UnsupportedEncodingException;

    int updateById(DevCamera devCamera);

    DevCamera getById(long id);

    List<DevCamera> getByAreaId(long id);

    int deleteById(long id);

    int deleteByArea(Integer areaId,Integer landId);

    WebLiveAddress getLiveById(long id);

    int controlPTZ(long id, int direction,int speed);

    DevCamera getBySerial(String deviceSerial, int channelNo);
}
